package sms.ui.kecheng;

import sms.dao.KeChengDao;
import sms.entry.KeCheng;
import sms.ui.KeChenGuanLi;

import java.util.Scanner;

public class KeChengUpdate {
    private static KeChengDao keChengDao = new KeChengDao();
    public static void show(){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入需要修改的课程名字：");
        String km = sc.next();
        System.out.println("输入要修改的内容：");
        String info = sc.next();
        KeCheng keCheng = new KeCheng(km,info);
        keChengDao.update(keCheng);
        KeChenGuanLi.show();
    }
}
